import { createRouter, createWebHashHistory } from 'vue-router'

import Layout from '@/views/home/Layout.vue'

const routes = [
  {
    path: "/",
    name: "home",
    redirect:"/layout"
  },
  {
    path: "/layout",
    name: "layout",
    component: Layout,
    children: [
      {
        path: "/layout/nurselevel",
        name: "nurselevel",
        component: () => import("@/views/nurse/Nurselevel.vue")
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes,
})

export default router
